home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 19 / CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso / CUCD / Online / NNTPd / xmit / get_tcp_conn.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-11-17  |  546 b   |  31 lines

  1. /*
  2. ** Return codes from get_tcp_conn().
  3. */
  4. #ifndef    FAIL
  5. #define FAIL        (-1)        /* routine failed */
  6. #endif
  7. #define    NOHOST        (FAIL-1)    /* no such host */
  8. #define    NOSERVICE    (FAIL-2)    /* no such service */
  9.  
  10. #ifndef NULL
  11. #define    NULL    0
  12. #endif
  13.  
  14. #ifdef USG    /* brain-dead USG compilers can't deal with typedef */
  15. #ifndef M_XENIX
  16. #ifndef dgux
  17. #define    u_long    unsigned long
  18. #define    u_short    unsigned short
  19. #endif
  20. #endif
  21. #endif
  22.  
  23. #ifdef    EXCELAN
  24. #define    NONETDB
  25. #define    OLDSOCKET
  26. #endif
  27.  
  28. #ifdef    NONETDB
  29. #define    IPPORT_NNTP    119        /* NNTP is on TCP port 119 */
  30. #endif    
  31.